package com.zc.common.extension;

/**
 * Created by zhangchi9 on 2016/12/6.
 */
@SPI("javassist")
public interface Compiler {
    /**
     * Compile java source code.
     *
     * @param code Java source code
     * @param classLoader TODO
     * @return Compiled class
     */
    Class<?> compile(String code, ClassLoader classLoader);
}
